<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/sys/organType.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
	$('#editOrganTypeForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<div>
	<h3>编辑机构类型</h3>
</div>
<form id="editOrganTypeForm" class="widgetcontent">
	<div style="float:left; width:40%">
		<table class="table table-striped">
			<tr>
				<td style="width: 80px;">名称</td>
				<td>
					<input type="text" id="name" name="name" value="${(organType.name)!''}" />
					<input type="hidden" id="code" name="code" value="${(organType.code)!''}" />
				</td>
			</tr>
			<tr>
				<td style="width: 100px;">是否默认机构类型</td>
				<td style="width: 100px;"><@mt.YesOrNo value=((organType.isDefault)!"") r=true name='isDefault' d=false mc=false/></td>
			</tr>
			<tr>
				<td>备注</td>
				<td><textarea id="remark" name="des" cols="30" rows="5">${(organType.des)!''}</textarea></td>
			</tr>
			<tr>
				<td colspan="2" style="text-align: center;">
					<a class="btn btn-info" href="javascript:;" onclick="javascript:organType_saveOrganType();"><i class="icon-save"></i> 保 存</a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a class="btn btn-primary" href="javascript:;" onclick="javascript:sys_load_handle('organType');"><i class="fontello-icon-block"></i> 取 消</a>
				</td>
			</tr>
		</table>
	</div>
	
	<!-- <div class="widget" style="float:left; margin-left: 10px;">
		<div class="widget-header">
			<h3 class="title"><i class="fontello-icon-th-list-1"></i> 子机构类型列表</h3>
		</div>
		<div class="widget-content">
			<div class="table-title">
			<#list list as ot><p><input type="checkbox" value="${ot.code}" name="codes"<#if sonList??><#list sonList as son><#if (ot.code == son.scode)>checked</#if></#list></#if> />${ot.name}</p></#list>
			</div>
	    </div>
	</div>
	 -->
</form>
	<!-- <div class="form-group">
      <label class="control-label col-md-2" for="general-select">子机构类型列表</label>
      <div class="col-md-3">
         <select id="general-multiple-select" class="form-control" multiple="" size="5" name="general-multiple-select">
			<#list list as ot><option value="${ot.code}" name="codes"<#if sonList??><#list sonList as son><#if (ot.code == son.scode)>checked</#if></#list></#if></option>${ot.name}</#list>
		 </select>
	  </div>
	</div> -->